package com.example.back.jpa;

import com.example.common.entity.Recommend;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.javers.spring.annotation.JaversSpringDataAuditable;

@JaversSpringDataAuditable
public interface RecommendRepository extends JpaRepository<Recommend,Long> {

    @Query(value = "SELECT * FROM doctor_recommend WHERE dc_id_bigint=?1",nativeQuery = true)
    Recommend findByDcId(Long dcid);
}
